class MedicineItem {
  final List<dynamic> pictures; //
  final String see; //药品具体描述
  final String name;
  final num price;
  final num number;
  final num kind;
  final bool identity; //是否为处方

  MedicineItem({
    this.identity,
    this.kind,
    this.name,
    this.number,
    this.pictures,
    this.price,
    this.see,
  });

  factory MedicineItem.init(Map<String, dynamic> json) {
    return MedicineItem(
      name: json['mename'],
      identity: json['identity'],
      kind: json['kind'],
      number: json['repositoryNum'],
      pictures: json['picture'],
      price: json['price'],
      see: json['description'],
    );
  }
}
